<!--
 * @Description: el-switch 开关
 * @Author: zhangwei
 * @Date: 2023-02-02 16:25:48
 * @LastEditTime: 2023-02-20 17:59:24
 * @LastEditors: zhangwei
-->
<template>
  <el-form-item :label="mdata.name" :prop="mdata.key">
    <el-switch v-bind="mdata.attrs" v-model="formObj[mdata.key]" />
  </el-form-item>
</template>

<script lang="ts" setup name="ZInput">
import type { PropType } from "vue";
import type { TypeCmpProtocal } from "@/types/TypeDesign";
import { watch } from "fs";

var props = defineProps({
  mdata: {
    type: Object as PropType<TypeCmpProtocal>,
    default: () => {},
  },
  formObj: {
    type: Object,
    default: () => {},
  },
});

</script>

<style scoped lang="scss"></style>
